package com.sumainfor.wx.tenant.controller.housekeeper;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.tenant.feign.Zfeign.ZpcGmioFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.Serializable;
import java.util.Map;

/**
 *租客端问卷调查
 */
@RestController
@RequestMapping("/housekeeper/HoSurveyTenant")
public class HoWxSurveyTenantController implements Serializable {
    @Autowired
    private ZpcGmioFeign zpcGmioFeign;

    /**
     *租客提交问卷调查
     */
    @PostMapping("/addHoSurveyTenant")
    public JsonResult addHoSurveyTenant(@RequestBody Map<String,Object> params){
        return zpcGmioFeign.addHoSurveyTenant(params);
    }
    /**
     *租客端智能电表充值
     */
    @PostMapping("/addHoRecharge")
    public JsonResult addHoRecharge(@RequestBody Map<String,Object> params){
        return zpcGmioFeign.addHoRecharge(params);
    }
}
